import React, { PureComponent } from 'react'
import Styles from "@/scss/index.scss"
//From表单蒙层,传入布尔值进行渲染判断
class Fromlayer extends PureComponent<Iprops, any>{
  render() {
    return (
      <div>
        {
          this.props.visible ? <div className={Styles.from_layer}> </div> : <div></div>
        }
      </div>

    )
  }
}
//传入的只能是boolean
type Iprops = {
  visible: boolean
}
export default Fromlayer